home *** CD-ROM | disk | FTP | other *** search
/ Garbo / Garbo.cdr / mac / hypercrd / hc1_2_x / stabilzr.sit / The Stabilizer / background_2678.txt < prev    next >
Text File  |  1989-02-05  |  13KB  |  548 lines

  1. -- background: 2678 from stack: in
  2. -- bmap block id: 18544
  3. -- flags: 4000
  4. -- background id: 0
  5. -- name: 
  6.  
  7.  
  8. -- part 90 (field)
  9. -- low flags: 01
  10. -- high flags: 4002
  11. -- rect: left=14 top=56 right=313 bottom=175
  12. -- title width / last selected line: 0
  13. -- icon id / first selected line: 0 / 0
  14. -- text alignment: 0
  15. -- font id: 3
  16. -- text size: 12
  17. -- style flags: 0
  18. -- line height: 16
  19. -- part name: expense
  20. ----- HyperTalk script -----
  21. on mouseDown
  22.   seeItems
  23. end mouseDown
  24.  
  25.  
  26. -- part 124 (field)
  27. -- low flags: 01
  28. -- high flags: 4002
  29. -- rect: left=175 top=56 right=313 bottom=336
  30. -- title width / last selected line: 0
  31. -- icon id / first selected line: 0 / 0
  32. -- text alignment: 0
  33. -- font id: 3
  34. -- text size: 12
  35. -- style flags: 0
  36. -- line height: 16
  37. -- part name: expense2
  38. ----- HyperTalk script -----
  39. on mouseDown
  40.   seeItems
  41. end mouseDown
  42.  
  43.  
  44. -- part 144 (field)
  45. -- low flags: 01
  46. -- high flags: 4002
  47. -- rect: left=336 top=56 right=313 bottom=497
  48. -- title width / last selected line: 0
  49. -- icon id / first selected line: 0 / 0
  50. -- text alignment: 0
  51. -- font id: 3
  52. -- text size: 12
  53. -- style flags: 0
  54. -- line height: 16
  55. -- part name: expense3
  56. ----- HyperTalk script -----
  57. on mouseDown
  58.   seeItems
  59. end mouseDown
  60.  
  61.  
  62. -- part 147 (button)
  63. -- low flags: 00
  64. -- high flags: A002
  65. -- rect: left=251 top=18 right=37 bottom=336
  66. -- title width / last selected line: 0
  67. -- icon id / first selected line: 0 / 0
  68. -- text alignment: 1
  69. -- font id: 0
  70. -- text size: 12
  71. -- style flags: 0
  72. -- line height: 16
  73. -- part name: Enter Item
  74. ----- HyperTalk script -----
  75. on mouseUp
  76.   global moreExpenses
  77.   put 1 into moreExpenses
  78. end mouseUp
  79.  
  80.  
  81.  
  82. -- part 148 (button)
  83. -- low flags: 00
  84. -- high flags: A002
  85. -- rect: left=336 top=18 right=37 bottom=426
  86. -- title width / last selected line: 0
  87. -- icon id / first selected line: 0 / 0
  88. -- text alignment: 1
  89. -- font id: 0
  90. -- text size: 12
  91. -- style flags: 0
  92. -- line height: 16
  93. -- part name: Delete Item
  94. ----- HyperTalk script -----
  95. --Copyright ┬⌐1988 - Scott McGilliard - all rights reserved
  96.  
  97. on mouseUp
  98.   if the optionKey is down then
  99.     answer "Delete all the expense items?" with "Cancel" or "OK"
  100.     if it = "OK" then
  101.       push this card
  102.       set lockScreen to true
  103.       put line 3 of card field "startMonth" of card "Year Totals" into adjust
  104.       repeat with i = 2 to the number of items in adjust
  105.         get item i of adjust
  106.         go card it
  107.         if the result = empty then doMenu "Delete Card"
  108.       end repeat
  109.       pop card
  110.       put empty into card field "allExpenses" of card "whichMonths"
  111.       put empty into card field "startMonth" of card "Year Totals"
  112.       noMore
  113.       put "This will take a couple of minutes, please wait."
  114.       repeat with i = 1 to 2
  115.         put empty into card field i of card "printList"
  116.       end repeat
  117.       repeat with i = 1 to 9
  118.         put empty into card field i of card "printTotals"
  119.       end repeat
  120.       repeat with i = 1 to 6
  121.         put empty into card field i of card "printMonths2"
  122.       end repeat
  123.       repeat with i = 1 to 6
  124.         put empty into card field i of card "printMonths"
  125.       end repeat
  126.       doMath
  127.     else
  128.       exit mouseUp
  129.     end if
  130.   else
  131.     set loc of msg to 18,15
  132.     put "Please click on the expense item you want deleted"
  133.     set cursor to 3
  134.     repeat until the mouse is down
  135.     end repeat
  136.     put item 1 of the mouseLoc into temp1
  137.     put item 2 of the mouseLoc into temp2
  138.     if temp1 < 14 or temp1 > 497 then
  139.       hide msg
  140.       exit mouseUp
  141.     end if
  142.     if temp1 >= 14 and temp1 <= 175 then
  143.       put "expense" into whichField
  144.     else
  145.       if temp1 >= 176 and temp1 <= 335 then
  146.         put "expense2" into whichField
  147.       else
  148.         if temp1 >= 336 and temp1 <= 497 then
  149.           put "expense3" into whichField
  150.         end if
  151.       end if
  152.     end if
  153.     put card field "allExpenses" of card "whichMonths" into allExpenses
  154.     put (temp2 - 39) div 16 into whichLine
  155.     put line whichLine of field whichField into whatExpense
  156.     if whatExpense Γëá empty then
  157.       answer "Delete expense item..." && whatExpense &&"?" with "Cancel" or "OK"
  158.       if it = "Cancel" then put empty into whatExpense
  159.     end if
  160.     if whatExpense = empty then
  161.       hide msg
  162.       exit mouseUp
  163.     end if
  164.     set cursor to 4
  165.     set loc of msg to 19,106
  166.     put "Please wait"
  167.     delete line whichLine of field whichField
  168.     if line 16 of field 1 = empty then
  169.       put line 1 of field 2 into line 16 of field 1
  170.       delete line 1 of field 2
  171.     end if
  172.     if line 16 of field 2 = empty then
  173.       put line 1 of field 3 into line 16 of field 2
  174.       delete line 1 of field 3
  175.     end if
  176.     repeat with i = 1 to 3
  177.       if field i Γëá empty then
  178.         repeat
  179.  
  180.           get field i
  181.           if it = empty then exit repeat
  182.  
  183.           get the number of lines of field i
  184.           if line it of field i = empty then
  185.             delete line it of field i
  186.           else
  187.             exit repeat
  188.           end if
  189.         end repeat
  190.       end if
  191.     end repeat
  192.     repeat with i = 1 to the number of lines in allExpenses
  193.       if whatExpense = item 1 of line i of allExpenses then
  194.         delete line i of card field "allExpenses" of card "whichMonths"
  195.         exit repeat
  196.       end if
  197.     end repeat
  198.     if whatExpense is in line 3 of card field "startMonth" of card "Year Totals" then
  199.       set lockScreen to true
  200.       put line 3 of card field "startMonth" of card "Year Totals" into adjust
  201.       repeat with i = 2 to the number of items in adjust
  202.         if whatExpense = item i of adjust then delete item i of line 3 of card field "startMonth" of card "Year Totals"
  203.         exit repeat
  204.       end repeat
  205.       go card whatExpense
  206.       if the result = empty then doMenu "Delete Card"
  207.       pop card
  208.     end if
  209.     repeat with x = 2 to 13
  210.       repeat with y = 1 to 4
  211.         if whatExpense is in field y of card x then
  212.           repeat with i = 1 to the number of lines in field y of card x
  213.             if whatExpense = line i of field y of card x then
  214.               delete line i of field y of card x
  215.               delete line i of field (y + 1) of card x
  216.               exit repeat
  217.             end if
  218.           end repeat
  219.           exit repeat
  220.         end if
  221.       end repeat
  222.       get line 15 of field 1 of card x
  223.       if it = empty then
  224.         put line 1 of field 3 of card x into line 15 of field 1 of card x
  225.         put line 1 of field 4 of card x into line 15 of field 2 of card x
  226.         delete line 1 of field 3 of card x
  227.         delete line 1 of field 4 of card x
  228.       end if
  229.     end repeat
  230.     hide msg
  231.   end if
  232. end mouseUp
  233.  
  234.  
  235.  
  236. -- part 149 (button)
  237. -- low flags: 00
  238. -- high flags: A002
  239. -- rect: left=414 top=322 right=340 bottom=493
  240. -- title width / last selected line: 0
  241. -- icon id / first selected line: 0 / 0
  242. -- text alignment: 1
  243. -- font id: 0
  244. -- text size: 12
  245. -- style flags: 0
  246. -- line height: 16
  247. -- part name: Year Totals
  248. ----- HyperTalk script -----
  249. on mouseUp
  250.   visual barn door close slowly to gray
  251.   visual barn door open slowly
  252.   go card "Year Totals"
  253. end mouseUp
  254.  
  255.  
  256.  
  257. -- part 150 (button)
  258. -- low flags: 00
  259. -- high flags: 2000
  260. -- rect: left=38 top=10 right=46 bottom=76
  261. -- title width / last selected line: 0
  262. -- icon id / first selected line: 11030 / 11030
  263. -- text alignment: 1
  264. -- font id: 0
  265. -- text size: 12
  266. -- style flags: 0
  267. -- line height: 16
  268. -- part name: Home
  269. ----- HyperTalk script -----
  270. on mouseUp
  271.   visual barn door close slowly to gray
  272.   visual dissolve
  273.   go stack "Home"
  274. end mouseUp
  275.  
  276.  
  277.  
  278. -- part 153 (button)
  279. -- low flags: 00
  280. -- high flags: A002
  281. -- rect: left=62 top=322 right=340 bottom=94
  282. -- title width / last selected line: 0
  283. -- icon id / first selected line: 0 / 0
  284. -- text alignment: 1
  285. -- font id: 0
  286. -- text size: 12
  287. -- style flags: 0
  288. -- line height: 16
  289. -- part name: Feb
  290. ----- HyperTalk script -----
  291. on mouseUp
  292.   visual barn door close slowly to gray
  293.   visual barn door open slowly
  294.   go card "February"
  295. end mouseUp
  296.  
  297.  
  298.  
  299. -- part 154 (button)
  300. -- low flags: 00
  301. -- high flags: A002
  302. -- rect: left=93 top=322 right=340 bottom=125
  303. -- title width / last selected line: 0
  304. -- icon id / first selected line: 0 / 0
  305. -- text alignment: 1
  306. -- font id: 0
  307. -- text size: 12
  308. -- style flags: 0
  309. -- line height: 16
  310. -- part name: Mar
  311. ----- HyperTalk script -----
  312. on mouseUp
  313.   visual barn door close slowly to gray
  314.   visual barn door open slowly
  315.   go card "March"
  316. end mouseUp
  317.  
  318.  
  319.  
  320. -- part 155 (button)
  321. -- low flags: 00
  322. -- high flags: A002
  323. -- rect: left=124 top=322 right=340 bottom=156
  324. -- title width / last selected line: 0
  325. -- icon id / first selected line: 0 / 0
  326. -- text alignment: 1
  327. -- font id: 0
  328. -- text size: 12
  329. -- style flags: 0
  330. -- line height: 16
  331. -- part name: Apr
  332. ----- HyperTalk script -----
  333. on mouseUp
  334.   visual barn door close slowly to gray
  335.   visual barn door open slowly
  336.   go card "April"
  337. end mouseUp
  338.  
  339.  
  340.  
  341. -- part 156 (button)
  342. -- low flags: 00
  343. -- high flags: A002
  344. -- rect: left=155 top=322 right=340 bottom=187
  345. -- title width / last selected line: 0
  346. -- icon id / first selected line: 0 / 0
  347. -- text alignment: 1
  348. -- font id: 0
  349. -- text size: 12
  350. -- style flags: 0
  351. -- line height: 16
  352. -- part name: May
  353. ----- HyperTalk script -----
  354. on mouseUp
  355.   visual barn door close slowly to gray
  356.   visual barn door open slowly
  357.   go card "May"
  358. end mouseUp
  359.  
  360.  
  361.  
  362. -- part 157 (button)
  363. -- low flags: 00
  364. -- high flags: A002
  365. -- rect: left=31 top=322 right=340 bottom=63
  366. -- title width / last selected line: 0
  367. -- icon id / first selected line: 0 / 0
  368. -- text alignment: 1
  369. -- font id: 0
  370. -- text size: 12
  371. -- style flags: 0
  372. -- line height: 16
  373. -- part name: Jan
  374. ----- HyperTalk script -----
  375. on mouseUp
  376.   visual barn door close slowly to gray
  377.   visual barn door open slowly
  378.   go card "January"
  379. end mouseUp
  380.  
  381.  
  382.  
  383. -- part 158 (button)
  384. -- low flags: 00
  385. -- high flags: A002
  386. -- rect: left=186 top=322 right=340 bottom=218
  387. -- title width / last selected line: 0
  388. -- icon id / first selected line: 0 / 0
  389. -- text alignment: 1
  390. -- font id: 0
  391. -- text size: 12
  392. -- style flags: 0
  393. -- line height: 16
  394. -- part name: Jun
  395. ----- HyperTalk script -----
  396. on mouseUp
  397.   visual barn door close slowly to gray
  398.   visual barn door open slowly
  399.   go card "June"
  400. end mouseUp
  401.  
  402.  
  403.  
  404. -- part 159 (button)
  405. -- low flags: 00
  406. -- high flags: A002
  407. -- rect: left=217 top=322 right=340 bottom=249
  408. -- title width / last selected line: 0
  409. -- icon id / first selected line: 0 / 0
  410. -- text alignment: 1
  411. -- font id: 0
  412. -- text size: 12
  413. -- style flags: 0
  414. -- line height: 16
  415. -- part name: Jul
  416. ----- HyperTalk script -----
  417. on mouseUp
  418.   visual barn door close slowly to gray
  419.   visual barn door open slowly
  420.   go card "July"
  421. end mouseUp
  422.  
  423.  
  424.  
  425. -- part 160 (button)
  426. -- low flags: 00
  427. -- high flags: A002
  428. -- rect: left=248 top=322 right=340 bottom=280
  429. -- title width / last selected line: 0
  430. -- icon id / first selected line: 0 / 0
  431. -- text alignment: 1
  432. -- font id: 0
  433. -- text size: 12
  434. -- style flags: 0
  435. -- line height: 16
  436. -- part name: Aug
  437. ----- HyperTalk script -----
  438. on mouseUp
  439.   visual barn door close slowly to gray
  440.   visual barn door open slowly
  441.   go card "August"
  442. end mouseUp
  443.  
  444.  
  445.  
  446. -- part 161 (button)
  447. -- low flags: 00
  448. -- high flags: A002
  449. -- rect: left=279 top=322 right=340 bottom=311
  450. -- title width / last selected line: 0
  451. -- icon id / first selected line: 0 / 0
  452. -- text alignment: 1
  453. -- font id: 0
  454. -- text size: 12
  455. -- style flags: 0
  456. -- line height: 16
  457. -- part name: Sep
  458. ----- HyperTalk script -----
  459. on mouseUp
  460.   visual barn door close slowly to gray
  461.   visual barn door open slowly
  462.   go card "September"
  463. end mouseUp
  464.  
  465.  
  466.  
  467. -- part 162 (button)
  468. -- low flags: 00
  469. -- high flags: A002
  470. -- rect: left=310 top=322 right=340 bottom=342
  471. -- title width / last selected line: 0
  472. -- icon id / first selected line: 0 / 0
  473. -- text alignment: 1
  474. -- font id: 0
  475. -- text size: 12
  476. -- style flags: 0
  477. -- line height: 16
  478. -- part name: Oct
  479. ----- HyperTalk script -----
  480. on mouseUp
  481.   visual barn door close slowly to gray
  482.   visual barn door open slowly
  483.   go card "October"
  484. end mouseUp
  485.  
  486.  
  487.  
  488. -- part 163 (button)
  489. -- low flags: 00
  490. -- high flags: A002
  491. -- rect: left=341 top=322 right=340 bottom=373
  492. -- title width / last selected line: 0
  493. -- icon id / first selected line: 0 / 0
  494. -- text alignment: 1
  495. -- font id: 0
  496. -- text size: 12
  497. -- style flags: 0
  498. -- line height: 16
  499. -- part name: Nov
  500. ----- HyperTalk script -----
  501. on mouseUp
  502.   visual barn door close slowly to gray
  503.   visual barn door open slowly
  504.   go card "November"
  505. end mouseUp
  506.  
  507.  
  508.  
  509. -- part 165 (button)
  510. -- low flags: 00
  511. -- high flags: A002
  512. -- rect: left=372 top=322 right=340 bottom=404
  513. -- title width / last selected line: 0
  514. -- icon id / first selected line: 0 / 0
  515. -- text alignment: 1
  516. -- font id: 0
  517. -- text size: 12
  518. -- style flags: 0
  519. -- line height: 16
  520. -- part name: Dec
  521. ----- HyperTalk script -----
  522. on mouseUp
  523.   visual barn door close slowly to gray
  524.   visual barn door open slowly
  525.   go card "December"
  526. end mouseUp
  527.  
  528.  
  529.  
  530. -- part 166 (button)
  531. -- low flags: 00
  532. -- high flags: 2000
  533. -- rect: left=446 top=10 right=46 bottom=484
  534. -- title width / last selected line: 0
  535. -- icon id / first selected line: 26104 / 26104
  536. -- text alignment: 1
  537. -- font id: 0
  538. -- text size: 12
  539. -- style flags: 0
  540. -- line height: 16
  541. -- part name: HelpIndex
  542. ----- HyperTalk script -----
  543. on mouseUp
  544.   push card
  545.   helpIndex
  546. end mouseUp
  547.  
  548.